﻿using System;
using System.Collections.Generic;
using System.Drawing;
//using System.Linq;
using System.Text;
//using System.Threading.Tasks;

namespace TRicheControl.Comm
{
    public class ControlHelper
    {
        /// <summary>
        /// 判断坐标是否在指定区域内
        /// </summary>
        /// <returns></returns>
        public static bool PointInArea(Point point, Rectangle area)
        {
            return (point.X >= area.X && point.X <= area.X + area.Width && point.Y >= area.Y && point.Y <= area.Y + area.Height);
        }
    }
}
